<template>
	<view style="min-height: 100vh;background-color: #fff;">
		<dev-navbar title="报告详情"></dev-navbar>
		<view class="content">
			<!-- <swiper class="swiper" circular v-if="list.length>0">
				<swiper-item style="border-radius: 16rpx;overflow: hidden;" v-for="(item,index) in list" :key="index">
					<dev-svg-image @tap="clickImg" mode="image" :imageUrl="item" height="950" width="710" radius="16">
					</dev-svg-image>
				</swiper-item>
			</swiper> -->
			
			<u-swiper class="swiper" height="950" mode="none" :list="list"></u-swiper>

			<scroll-view class="picture-box" scroll-x="true">
				<view class="each-picture" v-for="(item,index) in list" :key="index">
					<dev-svg-image @tap="clickImg" mode="image" :imageUrl="item" height="244" width="184" radius="16">
					</dev-svg-image>
				</view>
			</scroll-view>

		</view>
		<view style="height: 40rpx;"></view>
		<dev-iphone-bottom></dev-iphone-bottom>
	</view>
</template>

<script>


import uSwiper from "@/uview-ui/components/u-swiper/u-swiper.vue"
	export default {
		components: {
			uSwiper,
		},
		data() {
			return {
				list: [],
			};
		},
		onLoad(e) {
			this.list = e.url.split(',')
		},
		methods: {
			clickImg() {
				wx.previewImage({
					urls: this.list, //需要预览的图片http链接列表，多张的时候，url直接写在后面就行了
					current: '', // 当前显示图片的http链接，默认是第一个
					success: function(res) {},
					fail: function(res) {},
					complete: function(res) {},
				})
			},

		}

	}
</script>

<style lang="scss">
	.content {
		padding: 38rpx 20rpx;

		.swiper {
			height: 950rpx;
			width: 100%;
			border-radius: 16rpx;
			overflow: hidden;
		}

	}


	.picture-box {
		margin-top: 56rpx;
		white-space: nowrap;
		width: 100%;

		.each-picture {
			display: inline-block;
			margin-right: 20rpx;
		}
	}
</style>
